package com.zh.work.entity.channel;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("网关路由规则实体类")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("online_route")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OnlineRouteEntity extends Model<OnlineRouteEntity> {
  private static final long serialVersionUID = -1682683740816673324L;
  @ApiModelProperty(value = "主键", name = "id")
  @TableId("id")
  private Long id;
  @ApiModelProperty(value = "逻辑删除字段", name = "deleted")
  @TableLogic
  private Integer deleted;
  @ApiModelProperty(value = "路由名称", name = "routeName")
  private String routeName;
  @ApiModelProperty(value = "机构号", name = "branchNo")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "机构名称", name = "branchName")
  @TableField(exist = false)
  private String branchName;

  @ApiModelProperty(value = "代理商号", name = "agentNo")
  @TableField(value = "agentno")
  private String agentNo;
  @ApiModelProperty(value = "代理商名称", name = "agentName")
  @TableField(exist = false)
  private String agentName;

  @ApiModelProperty(value = "商户号", name = "merchNo")
  @TableField(value = "merchno")
  private String merchNo;
  @ApiModelProperty(value = "商户名称", name = "merchName")
  @TableField(exist = false)
  private String merchName;

  @ApiModelProperty(value = "起始金额", name = "amtStart")
  private Double amtStart;
  @ApiModelProperty(value = "截止金额", name = "amtEnd")
  private Double amtEnd;
  @ApiModelProperty(value = "起始时间", name = "timeStart")
  private String timeStart;
  @ApiModelProperty(value = "截止时间", name = "timeEnd")
  private String timeEnd;
  @ApiModelProperty(value = "状态(1-启用 2-禁用)", name = "status")
  private Integer status;
  @ApiModelProperty(value = "结算类型(1-T+0 2-T+1)", name = "settleType")
  private Integer settleType;
  @ApiModelProperty(value = "网关路由商户JSON字符串", name = "onlineMerchantJson")
  @TableField(exist = false)
  private String onlineMerchantJson;

}
